package org.yagnus.scalasupport.iterates

//@Deprecated("Use .counted on iterators")
class CountedIterator[+A](orig: Iterator[A]) extends Iterator[A] {
  private var cnt: Long = 0l;
  def hasNext = orig.hasNext;
  def next = { cnt += 1; orig.next };
  def getCount: Long = cnt;
}
